package XishiBackend;

import javax.servlet.http.HttpServletRequest;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 本接口用于各种新技术的测试接口，不承担任何业务
 * @author wangxiaoyu
 */

@RestController
@EnableAutoConfiguration
public class Example {
    @RequestMapping("/test")
    public String test(HttpServletRequest request) {
        String ret = "";
        System.out.println("hello");
        ret = "hello";
        return result(ret);
    }
    
    private String result(String ret) {
        return "---本接口用于各种新技术的测试接口，不承担任何业务---\n" + ret;
    }
}
